package com.tiancikeji.zaoke.app.dao.order;

import java.util.List;

import com.tiancikeji.zaoke.app.model.order.Bill;

public interface BillDao {

	public long insert(Bill bill);

	public int updateStatus(long id, int statusSuccess);

	public int revertStatus(long id, int statusUnpaid);

	public Bill getBySerialId(String serialId);

	public List<Bill> getByOutSerialId(String outSerialId);

	public Bill getSuccessBillByOutSerialId(String outSerial);

	public List<Bill> findByUserId(long userId, int offset, int limit);

	public int getCountByUserId(long userId);

	public String getPayUrlByOutSerialId(String orderSerial);

}
